package com.ym.medical.dao;

import com.ym.medical.domain.entity.UserPatientViewEntity;
import com.ym.medical.domain.param.UserPatientViewQueryParam;
import com.ym.medical.domain.vo.UserPatientViewListPcVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 患者用户表Dao接口
 *
 * @author ym
 * @date 2020-08-18
 */
@Repository
public interface UserPatientViewDao extends Mapper<UserPatientViewEntity> {

	/**
	 * 查询患者用户表列表,PC专用不要轻易混用更改
	 *
	 * @param queryParam 患者用户表查询参数
	 * @return 患者用户表集合
	 */
	List<UserPatientViewListPcVO> selectListPC(UserPatientViewQueryParam queryParam);

	/**
	 * 查询视图通过表
	 *
	 * @param unionId
	 * @param openIdMa
	 * @param openIdMp
	 * @param key
	 * @return
	 */
	UserPatientViewEntity selectByWxId(@Param("unionId") String unionId, @Param("openIdMa") String openIdMa, @Param("openIdMp") String openIdMp);
}
